# This is the current approach we employ in Reality

Server.route do
  if params[:q]
    extend API; respond_api
  elsif @headers[ACCEPT] =~ WAP_ACCEPT_REGEXP
    extend WAP; respond_wap
  elsif @path =~ /^\/basic(\/.+)?/
    extend Basic; respond_basic
  else
    extend Web; respond_web
  end
end
